package com.patterns.decorator.schoolReport;

/**
 * Created by Xiao Yiyun on 2017/5/18.
 * 排名情况修饰类
 */
public class SortDecorator extends Decorator {
    //构造函数，调用父类的即可
    public SortDecorator(SchoolReport schoolReport) {
        super(schoolReport);
    }
    //汇报排名情况
    private void reportSort() {
        System.out.println("我的排名是……");
    }
    //修饰后的成绩单汇报
    public void report() {
        super.report();
        this.reportSort();
    }
}
